package com.ljf.authority.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import com.ljf.config.annotation.AutoCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 权限组对象  authority_dat_permission_group
 *
 * @author LJF
 * @since 2024-10-30
 */
@Data
@ApiModel("权限组")
@EqualsAndHashCode(callSuper = true)
@TableName("authority_dat_permission_group")
public class AuthorityDatPermissionGroup extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link AuthorityDatPermissionGroup#COL_ID}
	 */
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: char(12)
	 * 注释: 编码
	 * {@link AuthorityDatPermissionGroup#COL_CODE}
	 */
	@AutoCode
	@TableField("code")
	@JsonProperty("code")
	@ApiModelProperty(value = "编码")
	private String code;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(20)
	 * 注释: 名称
	 * {@link AuthorityDatPermissionGroup#COL_NAME}
	 */
	@TableField("name")
	@JsonProperty("name")
	@ApiModelProperty(value = "名称")
	private String name;


	/**
	 * ID
	 * {@link AuthorityDatPermissionGroup#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 编码
	 * {@link AuthorityDatPermissionGroup#code}
	 */
	public static final String COL_CODE = "code";
	/**
	 * 名称
	 * {@link AuthorityDatPermissionGroup#name}
	 */
	public static final String COL_NAME = "name";

}
